/*
 * @Description: 接口统一暴漏
 * @Autor: Thlq
 * @Date: 2020-08-06 10:57:28
 * @LastEditors: Thlq
 * @LastEditTime: 2020-12-24 09:45:28
 */
import { prePayUrl } from "./url/pay.js"

const install = (Vue, vm) => {
	let prePay = ({ loading, ...data }) => vm.$u.post({ url: prePayUrl, data, loading })

	vm.$u.api = {
		prePay
	}
}

export default {
	install
}
